<?php
require_once("./conn.php");

//获取地址栏传递的son
$specialty_id = $_GET['specialty_id'];

//构建SQL语句
$sql = "delete from specialty where specialty_id=$specialty_id";

//执行SQL语句
if(mysqli_query($con,$sql)){
    echo "<script>alert('删除成功!');location='show_specialty.php';</script>";
}else{
    echo "<script>alert('删除失败!');location='show_specialty.php';</script>";
}
?>
